home *** CD-ROM | disk | FTP | other *** search
- /* mixcalc.h */
- /* Adapted from The C++ Programming Language by Bjarne Stroustrup
- Modified by P.J. LaBrocca
- */
-
- #ifndef MIXCALC_H
- #define MIXCALC_H
-
- #include "mixed.h"
- #include <setjmp.h>
-
- enum token_value {
- NAME = 1, NUMBER, END, ENDFILE = END,
- PLUS = '+', MINUS = '-',MUL = '*', DIV = '/',
- PRINT = ';',ASSIGN = '=', LP = '(', RP = ')'
- };
- extern enum token_value curr_tok;
-
- extern mixed_t *M;
-
- //extern mixed_t number_value; //parser.c
-
- extern jmp_buf startup;
-
- //function prototypes
- mixed_t expr(void);
- mixed_t term(void);
- mixed_t prim(void);
-
- enum token_value get_token(void);
-
-
- #endif
-
-
-
-